﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StateAgent.Miner
{
    public class Miner
    {
        private StateMachine<Miner> stateMachine = null;

        public int fatigue = 25;
        public int workComplete = 0;

        public StateMachine<Miner> StateMachine
        {
            get { return stateMachine; }
            //set { stateMachine = value; }
        }

        public Miner()
        {
            stateMachine = new StateMachine<Miner>(this);

            stateMachine.CurrentState = new IdleState();
        }

        public void Update()
        {
            stateMachine.Update();
        }
    }
}
